import React, { Component } from 'react';

export default class Son extends Component {
    state = {
        name: 'zs'
    }
    render () {
        return (
            <div>
                {this.props.render(this.state.name)}
            </div>
        );
    }
    componentDidMount () {
        console.log(this.props);
    }
}
